import request from '@/utils/request.js'

// 常量
const api_name = '/admin/refund'

export default {
    getRefundPage(params) {
        return request({
            url: `${api_name}/getRefundPage`,
            method: 'get',
            params: params
        })
    },
    getRefundStatusList() {
        return request({
            url: `${api_name}/getRefundStatusList`,
            method: 'get'
        })
    },
    getRefundDetailsById(id) {
        return request({
            url: `${api_name}/getRefundDetailsById/${id}`,
            method: 'get'
        })
    },
    auditRefund(data) {
        return request({
            url: `${api_name}/auditRefund`,
            method: 'post',
            data: data
        })
    }
}
